package org.example.basics;

public class Demo6 {
    public static void main(String[] args) {
        test1();
    }

    private static void test1() {
        int[] t = t(new int[]{1, 2, 3});
        for (int i = 0; i < t.length; i++) {
            System.out.println(t[i]);
        }
    }

    private static int[] t(int[] a) {
        int len = a.length;
        int[] r = new int[len];
        for (int i = 0; i < len; i++) {
            r[len - i - 1] = a[i];
        }
        return r;
    }
}
